package com.ucar.train.dao;


import com.ucar.train.dto.OrderDetailDTO;

import java.util.List;

public interface OrderDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderDetailDTO record);

    int insertSelective(OrderDetailDTO record);

    OrderDetailDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderDetailDTO record);

    int updateByPrimaryKey(OrderDetailDTO record);

    OrderDetailDTO selectByOrderNo(String orderNo);

    int insertSelectiveMore(List<OrderDetailDTO> orderDetailDTOS);

    /**
     * @Author zhoujinmu
     * @Description 订单表子查询并关联到店铺信息
     * @Date 2019/8/27 15:36
     */
    OrderDetailDTO getCommentAndStoreByOrderNo(String orderNo);

    List<OrderDetailDTO> selectByGetStoreCode(String getStoreCode);

    List<OrderDetailDTO> selectCarCommentByCarId(String carId);


}